%% Chronograph of the repartition of cells in the three states within the disordered geometry
clear all; close all;
%%%%%%%%%%%%%%%%%%%% root
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
root = 'D:\';
%%%%%%%%%%
load([root,'Compilation DiodeNatCom\figure 4\Chronograph.mat'])
myColors = [[0,0.6,0.05];[0.8,0,0];0.8*[0.1,0.2,0.5]];
margin = 0.05;
u = 4;
a = 1*u;
b = 1*u;
hFig1 = figure('color',[1,1,1],'Units','centimeter','Position',[4,4,a+1.1*margin,b+1.1*margin]); 
ax = axes('Units','centimeters');
ax.Position = [0.5*margin,0.5*margin, a, b];
H = bar(Chronograph.bars,'stacked');

for i = 1:length(H)
    H(i).FaceColor = 'flat';
    H(i).CData = myColors(i,:);
end